package com.ourteam.product.ui.domain;
/**
 * Template Name : DTO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Nov 30 16:49:33 CST
 * 2018 Auto Generate Date : 2018-12-14 15:15:28 Warning ! This file will be overwrite when
 * regenerate !
 */
import java.util.HashMap;
import java.util.Map;
import net.dao.IDataPopulateCallback;
import org.apache.commons.beanutils.BeanMap;
import org.apache.commons.lang.ArrayUtils;

public class ProductUIActionGroupBean implements java.io.Serializable {

  private static Map<String, String> mappedDaoFields = new HashMap<String, String>();

  private com.ourteam.product.ui.dao.ProductUIActionGroup productUIActionGroup;

  protected BeanMap getBeanMap() {

    return new BeanMap(productUIActionGroup);
  }

  static {
    mappedDaoFields.put("id", com.ourteam.product.ui.dao.IProductUIActionGroupDAO.Id);

    mappedDaoFields.put("domainId", com.ourteam.product.ui.dao.IProductUIActionGroupDAO.DomainId);

    mappedDaoFields.put(
        "actionGroupCode", com.ourteam.product.ui.dao.IProductUIActionGroupDAO.ActionGroupCode);

    mappedDaoFields.put(
        "lastModifyUser", com.ourteam.product.ui.dao.IProductUIActionGroupDAO.LastModifyUser);

    mappedDaoFields.put(
        "lastModifyTime", com.ourteam.product.ui.dao.IProductUIActionGroupDAO.LastModifyTime);

    mappedDaoFields.put("status", com.ourteam.product.ui.dao.IProductUIActionGroupDAO.Status);

    mappedDaoFields.put("remarks", com.ourteam.product.ui.dao.IProductUIActionGroupDAO.Remarks);

    mappedDaoFields.put(
        "domainName", com.ourteam.product.ui.dao.IProductUIActionGroupDAO.DomainName);

    mappedDaoFields.put(
        "domainCode", com.ourteam.product.ui.dao.IProductUIActionGroupDAO.DomainCode);
  }

  public static String getMappedDAOField(String aAttrName) {
    return mappedDaoFields.get(aAttrName);
  }

  public ProductUIActionGroupBean() {
    super();

    this.productUIActionGroup = new com.ourteam.product.ui.dao.ProductUIActionGroup();
  }

  public ProductUIActionGroupBean(
      com.ourteam.product.ui.dao.ProductUIActionGroup productUIActionGroup) {
    super();

    this.productUIActionGroup = productUIActionGroup;
  }

  public com.ourteam.product.ui.dao.ProductUIActionGroup convertToProductUIActionGroup() {
    return this.productUIActionGroup;
  }

  public com.ourteam.product.ui.dao.ProductUIActionGroup convertTo() {
    return this.productUIActionGroup;
  }

  /**
   * Get id
   *
   * @return long
   */
  public long getId() {
    return (long) this.productUIActionGroup.getId();
  }

  /**
   * Set id
   *
   * @parameter long
   */
  public void setId(long id) {

    this.productUIActionGroup.setId(id);
  }

  /**
   * Get domainId
   *
   * @return long
   */
  public long getDomainId() {
    return (long) this.productUIActionGroup.getDomainId();
  }

  /**
   * Set domainId
   *
   * @parameter long
   */
  public void setDomainId(long domainId) {

    this.productUIActionGroup.setDomainId(domainId);
  }

  /**
   * Get actionGroupCode
   *
   * @return String
   */
  public String getActionGroupCode() {
    return (String) this.productUIActionGroup.getActionGroupCode();
  }

  /**
   * Set actionGroupCode
   *
   * @parameter String
   */
  public void setActionGroupCode(String actionGroupCode) {

    this.productUIActionGroup.setActionGroupCode(actionGroupCode);
  }

  /**
   * Get lastModifyUser
   *
   * @return String
   */
  public String getLastModifyUser() {
    return (String) this.productUIActionGroup.getLastModifyUser();
  }

  /**
   * Set lastModifyUser
   *
   * @parameter String
   */
  public void setLastModifyUser(String lastModifyUser) {

    this.productUIActionGroup.setLastModifyUser(lastModifyUser);
  }

  /**
   * Get lastModifyTime
   *
   * @return java.util.Date
   */
  public java.util.Date getLastModifyTime() {
    return (java.util.Date) this.productUIActionGroup.getLastModifyTime();
  }

  /**
   * Set lastModifyTime
   *
   * @parameter java.util.Date
   */
  public void setLastModifyTime(java.util.Date lastModifyTime) {

    this.productUIActionGroup.setLastModifyTime(lastModifyTime);
  }

  /**
   * Get status
   *
   * @return String
   */
  public String getStatus() {
    return (String) this.productUIActionGroup.getStatus();
  }

  /**
   * Set status
   *
   * @parameter String
   */
  public void setStatus(String status) {

    this.productUIActionGroup.setStatus(status);
  }

  /**
   * Get remarks
   *
   * @return String
   */
  public String getRemarks() {
    return (String) this.productUIActionGroup.getRemarks();
  }

  /**
   * Set remarks
   *
   * @parameter String
   */
  public void setRemarks(String remarks) {

    this.productUIActionGroup.setRemarks(remarks);
  }

  /**
   * Get domainName
   *
   * @return String
   */
  public String getDomainName() {

    return (String) this.productUIActionGroup.getDomainName();
  }

  /**
   * Get domainCode
   *
   * @return String
   */
  public String getDomainCode() {

    return (String) this.productUIActionGroup.getDomainCode();
  }

  public int hashCode() {
    return org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(this);
  }

  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    } // end if

    if ((obj instanceof ProductUIActionGroupBean) == false) {
      return false;
    } // end if

    ProductUIActionGroupBean other = (ProductUIActionGroupBean) obj;

    boolean isEqual = false;

    com.ourteam.product.ui.dao.ProductUIActionGroup tempProductUIActionGroup =
        other.convertToProductUIActionGroup();

    if (tempProductUIActionGroup == null || this.productUIActionGroup == null) {
      isEqual = false;
    } else if (tempProductUIActionGroup == this.productUIActionGroup
        || tempProductUIActionGroup.equals(this.productUIActionGroup)) {
      isEqual = true;
    } else {
      isEqual = false;
    }

    return isEqual;
  }

  public static ProductUIActionGroupBean[] toArray(
      com.ourteam.product.ui.dao.ProductUIActionGroup[] aProductUIActionGroups) {

    return toArray(aProductUIActionGroups, null);
  }

  public static ProductUIActionGroupBean[] toArray(
      com.ourteam.product.ui.dao.ProductUIActionGroup[] aProductUIActionGroups,
      IDataPopulateCallback aCallBack) {

    if (ArrayUtils.isEmpty(aProductUIActionGroups)) {
      return new ProductUIActionGroupBean[0];
    }

    int length = aProductUIActionGroups.length;

    ProductUIActionGroupBean[] beans = new ProductUIActionGroupBean[length];

    for (int i = 0; i < length; i++) {
      beans[i] = new ProductUIActionGroupBean(aProductUIActionGroups[i]);
      if (aCallBack != null) {
        aCallBack.populate(beans[i], new Object[] {aProductUIActionGroups[i]});
      }
    }

    return beans;
  }
}
